package com.oocl.project5.doublelinklist;

import com.oocl.project5.informationstore.Person;
import com.oocl.project5.printformat.PrintFormat;


public class NodeFactory {
	public static Node<Person> initPerson(){
		Person person1 = new Person(1, "Alice", "female","1995/11/29", "13411457789", "Yueyang");
		Node<Person> headPointer = new Node<Person>(person1);
		Node<Person> curPointer = headPointer;
		Person person2 =new Person(3,"Mike","male","1995/04/23","15172417273","guangzhou");
		Person person4 =new Person(5,"Bob","male","1995/02/03","13245453232","shenzhen");
		Person person5 =new Person(7,"Dade","male","1993/12/04","15654232312","zhuhai");
		Person person6 =new Person(6,"Joanne","female","1987/06/17","17874755423","shenzhen");
		Person person7 =new Person(4,"Wyatt","male","1995/04/28","18699735315","beijing");
		Person person8 =new Person(8,"Alen","female","1994/07/06","15287875478","shanghai");
		Person person9 =new Person(10,"Judy","female","1978/02/15","13253427867","shenzhen");
		Person person10 =new Person(9,"Mata","male","1985/06/13","16567568954","shanghai");
		Person person3 =new Person(2,"Sundy","female","1983/09/01","14265768092","shenzhen");
		curPointer.add(curPointer, person2);
		curPointer.add(curPointer, person3);
		curPointer.add(curPointer, person4);
		curPointer.add(curPointer, person5);
		curPointer.add(curPointer, person6);
		curPointer.add(curPointer, person7);
		curPointer.add(curPointer, person8);
		curPointer.add(curPointer, person9);
		curPointer.add(curPointer, person10);
	//	PrintFormat.printPersonAll(headPointer);
		return headPointer;
	}
}
